package com.sky.trade;

import com.sky.api.config.DefaultFeignConfig;
import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.openfeign.EnableFeignClients;
import org.springframework.scheduling.annotation.EnableScheduling;
import org.springframework.transaction.annotation.EnableTransactionManagement;

/**
 * @author toki
 */
@MapperScan("com.sky.trade.mapper")
@SpringBootApplication
@EnableFeignClients(basePackages = "com.sky.api.client", defaultConfiguration = DefaultFeignConfig.class)
@EnableScheduling //开启注解方式的定时任务
@EnableTransactionManagement //开启注解方式的事务管理
public class TradeApplication {
    public static void main(String[] args) {
        SpringApplication.run(TradeApplication.class, args);
    }
}
